package com.weishi.tcp.vo;

import lombok.Data;

/**
 * Tcp数据格式
 */
@Data
public class TcpMassageDataVo {

    /**
     * 信息类型
     */
    private String msgId;

    /**
     * 数据
     */
    private String from;

    /**
     * 时间戳
     */
    private long timp;

    /**
     * 设备Id
     */
    private String deviceId;

    public enum MsgTypeEnum{

        GPS("gps","GPS数据"),
        HEARTBEAT("heart_beat","心率表数据"),
        HEART("heart","心跳数据"),
        ACCELERATION("acceleration","加速度感应器"),
        WIT_ACC("wit_acc","维特感应器");

        String msgId;
        String memo;

        MsgTypeEnum(String msgId, String memo) {
            this.msgId = msgId;
            this.memo = memo;
        }

        public String getMsgId() {
            return msgId;
        }

    }
}
